package com.chen.controller;

import com.chen.pojo.ArticleType;
import com.chen.service.ArticleTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping("/articleType")
public class ArticleTypeController {
    //组合service
    @Autowired
    private ArticleTypeService articleTypeService;

    @RequestMapping("/add")
    @ResponseBody
    public String addArticleType(ArticleType articleType){

        articleTypeService.addArt_type(articleType);
        return "";
    }
}
